!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[SlideShowGallery_SlideShowTextFloating]",["react","reactDOM"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[SlideShowGallery_SlideShowTextFloating]"]=t(require("react"),require("react-dom")):e["rb_wixui.thunderbolt[SlideShowGallery_SlideShowTextFloating]"]=t(e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,(function(e,t){return function(e){function t(t){for(var r,o,l=t[0],s=t[1],u=t[2],d=0,p=[];d1&&!N:X,Q=e.transitionReverse,$=e.alignTextRight,ee=e.onItemClicked,te=e.renderNavigationButtonsInHelpers,ne=void 0!==te&&te,re=e.imageMode,ae=e.panelInImageWrapper,ie=r.useRef(null),oe=Object(s.a)(ie),le=J&&oe,se=r.useState(!1),ue=se[0],ce=se[1],de="NoTransition"!==k,pe=h[L],fe=r.useState(!1),me=fe[0],he=fe[1],ve=r.useCallback((function(e){O(e),null==x||x({type:"imageChanged",itemIndex:e}),H&&H(e)}),[O,x,H]),ye=r.useCallback((function(e){ue||(ce(!0),O(e),null==x||x({type:"imageChanged",itemIndex:e}))}),[ue,O,x]),_e=r.useCallback((function(){ce(!1),H&&H(L)}),[L,ce,H]),ge=r.useCallback((function(e){return de?ye(e):ve(e)}),[ve,ye,de]),Ae=r.useCallback((function(){var e=b(L,h.length);return he(!1),ge(e)}),[h.length,L,ge]),be=r.useCallback((function(){var e=A(L,h.length);return he(!0),ge(e)}),[h.length,L,ge]),Ee=r.useCallback((function(){null==K||K({type:"autoplayOn"}),S(!0)}),[K,S]),Ie=r.useCallback((function(){null==q||q({type:"autoplayOff"}),S(!1)}),[q,S]);Object(l.a)("onSwipeLeft",Q?be:Ae,ie),Object(l.a)("onSwipeRight",Q?Ae:be,ie),Object(u.a)(Q?be:Ae,le?T:null),r.useImperativeHandle(t,(function(){return{next:Ae,previous:be,play:Ee,pause:Ie}}),[Ae,be,Ee,Ie]);var Le=r.useRef({currentIndex:L,items:h,indexes:new Set(E(L,h.length))});if(Le.current.items!==h)Le.current={currentIndex:L,items:h,indexes:new Set(E(L,h.length))};else if(Le.current.currentIndex!==L){Le.current={currentIndex:L,items:h,indexes:Le.current.indexes};for(var Oe=0,xe=E(L,h.length);Oe100||Math.abs(e.deltaCoords.y)>60)}(r)){var o=(n=r.deltaCoords.x,i=r.deltaCoords.y,Math.abs(n)>Math.abs(i)?n>0?"left":"right":i>0?"up":"down");e===a[o]&&t(r.evObj)}};return n&&n.current&&(n.current.addEventListener("touchstart",s,{passive:!0}),n.current.addEventListener("touchmove",u,{passive:!0}),n.current.addEventListener("touchend",c,{passive:!0})),function(){n&&n.current&&(n.current.removeEventListener("touchstart",s),n.current.removeEventListener("touchmove",u),n.current.removeEventListener("touchend",c))}}},u=function(e,t,n){return r.useEffect(s(e,t,n),[e,n,t])}},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t){return"item-"+e+"-"+t}},7:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r={ARIA_LABEL_NAMESPACE:"ariaLabels",IMAGE_ZOOM_ARIA_LABEL_KEY:"GalleryItem_AriaLabel_ZoomImageButton",IMAGE_ZOOM_ARIA_LABEL_DEFAULT:"press to zoom",NAVIGATION_BUTTONS_ARIA_LABEL_KEY:"Gallery_AriaLabel_NavigationButtons",NAVIGATION_BUTTONS_ARIA_LABEL_DEFAULT:"slides",NEXT_BUTTON_ARIA_LABEL_KEY:"Gallery_AriaLabel_NextButton",NEXT_BUTTON_ARIA_LABEL_DEFAULT:"next",PREV_BUTTON_ARIA_LABEL_KEY:"Gallery_AriaLabel_PrevButton",PREV_BUTTON_ARIA_LABEL_DEFAULT:"previous"},a={item:"gallery-item-item",panel:"gallery-item-panel",title:"gallery-item-title",panelLink:"gallery-item-panel-link",description:"gallery-item-description",link:"gallery-item-click-action-link",imageZoomBtn:"gallery-item-click-action-image-zoom",ariaDescribedbyId:"gallery-item-describedby-id",disabledClickActionWrapper:"gallery-item-click-action-disabled",navButtons:"gallery-navButtons",prevButton:"gallery-prevButton",nextButton:"gallery-nextButton",prevButtonInner:"gallery-prevButtonInner",nextButtonInner:"gallery-nextButtonInner",counter:"gallery-counter"},i={outIn:"OutIn",crossfade:"CrossFade",shrinkfade:"CrossFade",swipeHorizontal:"SlideHorizontal",swipeHorizontalFullScreen:"SlideHorizontal",swipeVertical:"SlideVertical",swipeVerticalFullScreen:"SlideVertical",seq_crossFade_All:"CrossFade",seq_shrink_All:"Shrink",swipe_horiz_All:"SlideHorizontal",swipe_vert_All:"SlideVertical",seq_random:"Random",none:"NoTransition"}},8:function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return p}));var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a